﻿<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <meta http-equiv="Content-Type" content="text/html; charset=GBK" />
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/layout.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/sunny/jquery-ui-1.10.1.custom.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.6.4.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.layout.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-1.10.3.custom.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Script.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-extend.js")" type="text/javascript"></script>
    <style type="text/css">
        .ui-layout-north
        {
            padding: 0px;
            margin: 0px;
            border: 0px;
            background: url(/Content/sub_bg.jpg);
            overflow: hidden;
        }
        .ui-layout-west
        {
            padding: 0px;
            margin: 0px;
            border: 0px;
            background: #edfeea;
        }
        .ui-layout-center
        {
            padding: 0px;
            margin: 0px;
            border: 0px;
            overflow: auto;
        }
        .ui-layout-resizer-north-open
        {
            background-color: #adcb97;
            border: 0px;
        }
        .ui-layout-resizer-west-open
        {
            background-color: #adcb97;
        }
    </style>
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            $('body').layout({
                applyDemoStyles: false,
                    north: {
                    size: 34
                    , spacing_open: 1
                    , closable: false
                    , resizable: false
                    }
                    , west: {
                        size: 200
                    , spacing_open: 1
                    , closable: false
                    , resizable: false
                    }
            });
            $("input[type='button']").button().addClass("button");
            if (parent.window.NodeName != "")
                $("#headertitle").html(parent.window.NodeName);

            //防止退格键，页面后退。
            $(document).keydown(function (e) {
                var doPrevent;
                if (e.keyCode == 8) {
                    var d = e.srcElement || e.target;
                    if (d.tagName.toUpperCase() == 'INPUT' || d.tagName.toUpperCase() == 'TEXTAREA') {
                        doPrevent = d.readOnly || d.disabled;
                    }
                    else
                        doPrevent = true;
                }
                else
                    doPrevent = false;

                if (doPrevent)
                    e.preventDefault();
            }); 
        });
    </script>
    @RenderSection("head", false)
</head>
<body>
    @RenderBody()
    <div id="divError" title="提示信息" style="display: none">
        <div id="divErrorInfo">
        </div>
    </div>
</body>
</html>
